package com.ruitu.health_2.mvp.model;

import com.ruitu.arad.api.RxUtil;
import com.ruitu.arad.base.BaseModel;
import com.ruitu.health_2.dao.http.APIRetrofit;
import com.ruitu.router_module.bean.BaseResult2;
import com.ruitu.router_module.bean.home.SearchData;

import io.reactivex.Observable;

public class SearchModel {

    public static class SearchListM extends BaseModel {
        public Observable<BaseResult2<SearchData>> reqSearch(String name) {
            return APIRetrofit.getDefault()
                    .reqSearch(name)
                    .compose(RxUtil.<BaseResult2<SearchData>>subIoObMain());
        }
    }
}
